home *** CD-ROM | disk | FTP | other *** search
/ Invisible Universe / Invisible Universe (1995)(Voyager)[Mac-PC].iso / mac / UNIVERSE / SHARED.DIR / 01018_Script_sbtVideo < prev    next >
Text File  |  1995-11-21  |  1KB  |  56 lines

  1. -- standard button trios modified for the Videos...
  2. --property myNormal, myChannel, myScript, ancestor
  3.  
  4. --on birth me, sp, sc
  5. --  set ancestor to birth(script "sb",sp,sc)
  6. --  set myScript to sc
  7. --  set myChannel to integer(sp)
  8. --  return me
  9. --end
  10.  
  11. --change appearance
  12. on sbtvrollo myChannel, myRollover
  13.   global gsbtvMyNormal
  14.   --put ">>>my rollover sbtVideo rollover"
  15.   
  16.   puppetSprite myChannel,TRUE
  17.   set gsbtvMyNormal = the castNum of sprite myChannel
  18.   
  19.   set nm = objectLabel() & "FR.PIC"
  20.   
  21.   set the castNum of sprite myChannel to the number of cast nm 
  22.   updateStage
  23.   --puppetSprite myChannel, false
  24. end
  25.  
  26. on sbtvpress theLine
  27.   set myChannel = integer(item 4 of theLine)
  28.   
  29.   --put ">>>my rollover sbtVideo press"
  30.   
  31.   puppetSprite myChannel,TRUE
  32.   
  33.   set nm = objectLabel() & "FP.PIC"
  34.   
  35.   set the castNum of sprite myChannel to the number of cast nm 
  36.   updateStage
  37.   puppetSprite myChannel, false
  38. end
  39.  
  40. on sbtvnorm theLine
  41.   global gsbtvMyNormal
  42.   --put ">>>my rollover sbtVideo norm"
  43.   
  44.   set myChannel = integer(item 4 of theLine)
  45.   
  46.   puppetSprite myChannel,TRUE
  47.   set the castNum of sprite myChannel to gsbtvMyNormal
  48.   puppetSprite myChannel, false
  49.   updateStage
  50. end
  51.  
  52. on sbtvdoScript theLine
  53.   set command = item 7 of theLine
  54.   do command
  55. end
  56.